﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RoleMgrDetailsUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.UserManagement.RoleMgrDetails.RoleMgrDetailsUserControl" %>
<%@ Register Src="../LeftMenu/LeftMenuUserControl.ascx" TagName="LeftMenuUserControl" TagPrefix="uc1" %>

<style type="text/css">
    form.cmxform
    {
        width: 50em;
    }
    em.error
    {
        background: url("/_layouts/JM.JCY.Resource/images/unchecked.gif") no-repeat 0px 0px;
        padding-left: 16px;
    }
    em.success
    {
        background: url("/_layouts/JM.JCY.Resource/images/checked.gif") no-repeat 0px 0px;
        padding-left: 16px;
    }
    
    form.cmxform label.error
    {
        margin-left: auto;
        width: 250px;
    }
    em.error
    {
        color: black;
    }
    #warning
    {
        display: none;
    }
    
    table.ms-rtetoolbarmenu
    {
        width: 100%;
    }
    
    iframe.ms-rtelong
    {
        width: 100%;
    }
    .style1
    {
        height: 20px;
    }
    
    .countLabel
    {
        color: Gray;
        font-style: italic;
    }
    
    .storageBox
    {
        display: none;
    }
    
    .copiedOption
    {
        background-color: Yellow;
    }
</style>
<script src="/_layouts/JM.JCY.Resource/scripts/jQuery.dualListBox-1.3.js" language="javascript"
    type="text/javascript"></script>
<script language="javascript" type="text/javascript">

function getClientId() {
        var paraId1 = '<%= box1View.ClientID %>';
        var paraId2 = '<%= box2View.ClientID %>';
        return { Id1: paraId1, Id2: paraId2 };
    }


    $(function () {

        $.configureBoxes();

    });



</script>

<table class="main">
    <tr>
        <td valign="top" width="25%" runat="server" id="tdLeftMenu">
            <uc1:LeftMenuUserControl ID="LeftMenuUserControl1" runat="server" />
        </td>
        <td valign="top" width="75%" runat="server" id="tdContent">
            <table class="content" width="98%">
                <tr>
                    <td style="padding: 5px;">
                        <table width="100%" class="title">
                            <tr>
                                <td width="60%">
                                    <h2 class="title">
                                        <asp:Label ID="lblTitle" runat="server" Text="权限管理"></asp:Label>
                                    </h2>
                                </td>
                                <td align="right" width="40%">
                                    <%--<input id="isHRAdmin" type="text" value="<%=isHRAdmin %>" style="display: none" />--%>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <br />
                        <hr />
                    </td>
                </tr>

                <tr>
                <td>
                <table>
                <tr>
                <td width="30%"><asp:Label ID="lblAppName" runat="server"></asp:Label></td>
                <td width="1%">:</td>
                 <td>
                     <asp:RadioButtonList ID="rblApplication" runat="server" 
                         RepeatDirection="Horizontal" AutoPostBack="True" 
                         onselectedindexchanged="rblApplication_SelectedIndexChanged">
                         <asp:ListItem Selected="True" Value="0">默认</asp:ListItem>
                         <asp:ListItem Value="1">自定义</asp:ListItem>
                     </asp:RadioButtonList>
                    </td>
                    
                    
                </tr>

                   <tr>
                <td colspan="3">
                
                           <table width="100%" border="0" runat="server" id="tbListBox">
                                            <tr>
                                                <td width="40%" valign="bottom" style='padding-left: 0px; padding-right: 0px' class="style1">
                                                    所有人员
                                                </td>
                                                <td width="20%" style='padding-left: 0px; padding-right: 0px' class="style1">
                                                    &nbsp;
                                                </td>
                                                <td valign="bottom" width="40%" style='padding-left: 0px; padding-right: 0px' class="style1">
                                                    添加人员
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style='padding-left: 0px; padding-right: 0px'>
                                                  
                                                    <input type="text" id="box1Filter" style="width: 100%" />
                                                    <select runat="server" id="box1View" multiple="true" style="height: 150px; width: 100%;">
                                                    </select><br />
                                                    <span id="box1Counter" class="countLabel"></span>
                                                    <select id="box1Storage">
                                                    </select>
                                                </td>
                                                <td valign="bottom" align="center" style='padding-left: 0px; padding-right: 0px'>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <button id="allTo2" type="button">
                                                                    &nbsp;>>&nbsp;</button>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <button id="allTo1" type="button">
                                                                    &nbsp;<<&nbsp;</button>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td style='padding-left: 0px; padding-right: 0px'>
                                                   
                                                    <input type="text" id="box2Filter" style="width: 100%" /><br />
                                                    <select name="box2View" runat="server" id="box2View" multiple="true" style="width: 100%; height: 150px">
                                                    </select><br />
                                                    <br />
                                                    <span id="box2Counter" class="countLabel"></span>
                                                    <select id="box2Storage">
                                                    </select>
                                                </td>
                                            </tr>
                                        </table>
                
                </td>
                    
                    
                </tr>

                     <tr>
                        <td align="right" colspan=3>
                            <asp:ImageButton ID="imgSave" runat="server" ImageUrl="~/_layouts/JM.JCY.Resource/images/save.png"  ValidationGroup="SaveInfo"  OnClientClick="if(CheckPageValid()==false)return false;"
                                OnClick="imgSave_Click" />
                            <asp:ImageButton ID="imgCancel" runat="server" 
                                ImageUrl="~/_layouts/JM.JCY.Resource/images/cancel.png" 
                                onclick="imgCancel_Click" />
                        </td>
                    </tr>

                </table>
                </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
